package com.jiankang.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.jiankang.dao.DailyReportDao;
import com.jiankang.entity.DailyReport;
import com.jiankang.service.DailyReportService;
import com.jiankang.util.Page;

@Service("DailyReportService")
public class DailyReportServiceImpl implements DailyReportService {
	@Resource
	private DailyReportDao dailyReportDao;
	@Override
	public List<DailyReport> searchDaily() {
		// TODO Auto-generated method stub
		return dailyReportDao.searchDaily();
	}
	@Override
	public List<DailyReport> searchDailyNew(int id, String date) {
		// TODO Auto-generated method stub
		return dailyReportDao.searchDailyNew(id, date);
	}
	@Override
	public int saveDaily(DailyReport saveDaily) {
		// TODO Auto-generated method stub
		return dailyReportDao.saveDaily(saveDaily);
	}
	@Override
	public int updateDaily(DailyReport updateDaily) {
		// TODO Auto-generated method stub
		return dailyReportDao.updateDaily(updateDaily);
	}
	@Override
	public long getAllProductCount() {
		// TODO Auto-generated method stub
		return dailyReportDao.getAllProductCount();
	}
	@Override
	public List<DailyReport> getHealthFile(Page page) {
		// TODO Auto-generated method stub
		return dailyReportDao.getHealthFile(page);
	}

	
}	
